package com.ruoyi.business.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.RagflowUserMapper;
import com.ruoyi.business.domain.RagflowUser;
import com.ruoyi.business.service.IRagflowUserService;

/**
 * raglow用户列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-12
 */
@Service
public class RagflowUserServiceImpl implements IRagflowUserService 
{
    @Autowired
    private RagflowUserMapper ragflowUserMapper;

    /**
     * 查询raglow用户列表
     * 
     * @param id raglow用户列表主键
     * @return raglow用户列表
     */
    @Override
    public RagflowUser selectRagflowUserById(String id)
    {
        return ragflowUserMapper.selectRagflowUserById(id);
    }

    /**
     * 查询raglow用户列表列表
     * 
     * @param ragflowUser raglow用户列表
     * @return raglow用户列表
     */
    @Override
    public List<RagflowUser> selectRagflowUserList(RagflowUser ragflowUser)
    {
        return ragflowUserMapper.selectRagflowUserList(ragflowUser);
    }

    /**
     * 新增raglow用户列表
     * 
     * @param ragflowUser raglow用户列表
     * @return 结果
     */
    @Override
    public int insertRagflowUser(RagflowUser ragflowUser)
    {
//        ragflowUser.setCreateTime(DateUtils.getNowDate());
        return ragflowUserMapper.insertRagflowUser(ragflowUser);
    }

    /**
     * 修改raglow用户列表
     * 
     * @param ragflowUser raglow用户列表
     * @return 结果
     */
    @Override
    public int updateRagflowUser(RagflowUser ragflowUser)
    {
//        ragflowUser.setUpdateTime(DateUtils.getNowDate());
        return ragflowUserMapper.updateRagflowUser(ragflowUser);
    }

    /**
     * 批量删除raglow用户列表
     * 
     * @param ids 需要删除的raglow用户列表主键
     * @return 结果
     */
    @Override
    public int deleteRagflowUserByIds(String[] ids)
    {
        return ragflowUserMapper.deleteRagflowUserByIds(ids);
    }

    /**
     * 删除raglow用户列表信息
     * 
     * @param id raglow用户列表主键
     * @return 结果
     */
    @Override
    public int deleteRagflowUserById(String id)
    {
        return ragflowUserMapper.deleteRagflowUserById(id);
    }
}
